package com.androidmvc.base.network.http.okhttp;

import java.lang.reflect.Type;

/**
 * Created by jmh on 2017/3/24.
 */

public abstract class HttpRequestCallback<T> {
    public static Type type;

    public HttpRequestCallback() {
        type = ClassTypeReflect.getModelClazz(getClass());
    }


    public static Type getType() {
        return type;
    }

    public abstract void onSuccess(T t);


    public abstract void onProgress(int progress, long networkSpeed, boolean done);


    public abstract void onFailure(int errorCode, String msg);
}
